ไม่มีวิธีกำหนดค่าด้วย Blogger
แต่สิ่งที่ฉันรู้คือ jQuery สามารถทำได้
ในการทำเช่นนี้คุณจะต้องไปที่พื้นที่แม่แบบและคลิก "แก้ไข HTML" /body
ดำเนินการค้นหาสำหรับ เพียงแค่ข้างต้นว่าใส่แล้วใส่<script src="http://code.jquery.com/jquery-1.10.1.min.js">
<script></script>
สิ่งที่คุณมีตอนนี้ควรเป็น:
some code
<script src='http://code.jquery.com/jquery-1.10.1.min.js'/>
<script>
This is where the jQuery calls will go.
</script>
</body>
some more code
การเรียก jQuery ที่เหมาะสมสามารถหาได้จากหน้านี้ซึ่งพวกเขาให้ตัวอย่างขอสิ่งที่คุณต้องการทำ ตัวอย่างนี้ถูกคัดลอกด้านล่าง (จากhttp://api.jquery.com/contents/ )
<div class="container">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<br><br>
Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
<br><br>
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.
</div>
เราสามารถใช้.contents()
วิธีนี้เพื่อช่วยแปลงข้อความนี้เป็นสามย่อหน้าที่มีรูปแบบดี:
$( ".container" )
.contents()
.filter(function() {
return this.nodeType === 3;
})
.wrap( "<p></p>" )
.end()
.filter( "br" )
.remove();
ได้รับคุณจะต้องทำการเปลี่ยนแปลงเล็กน้อยด้านบนเพื่อให้สามารถใช้งานได้ แต่ฉันจะปล่อยให้คุณคิดออก :-)
<br/>
ด้วย CSS เช่นbr+br {display: none}
ในTheme > Edit HTMLซึ่งคุณจะได้พบกับสไตล์มากมายภายใต้<head><b:skin><![CDATA[...