Laman

Tạo chữ cái đầu tiên in hoa cho bài viết và nhận xét

26   nhận xét

Chúng ta đã biết cách tạo chữ cái đầu theo phong cách báo chí cho bài viết Blogger tại bài này. Hôm nay tôi xin giới thiệu một cách khác để tạo chữ cái đầu in hoa cho bài viết, cho phần nhận xét, và cho bất kỳ một đoạn văn bản nào đó một cách tự động.

Xem Demo dưới đây.


Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu. Đây là đoạn văn mẫu.

Để làm được điều này, bạn hãy thực hiện theo các bước sau đây.

Bước 1. Đăng nhập Blogger vào Design >> Edit HTML chọn Expand Widget Templates.

Đặt đoạn code CSS sau đây vào trước dòng]]></b:skin>.

.capital:first-letter {
float:left;
display:block;
font-family:"times new roman";
font-size:3em;
color:#990000;
margin:0px 5px 0 0;
padding:0 0 0 10px;
}

Bạn có điều chỉnh font-family và font-size theo ý muốn của mình.

Lưu Template.

Bước 2. Nếu bạn muốn hiển thị chữ cái in hoa đầu tiên cho toàn bài viết thì trong Template tìm dòng <p><data:post.body</p> rồi thay nó thành <p class="capital"><data:post.body</p>

Hoặc dòng <data:post.body/> rồi thay nó thành <span class="capital"><data:post.body/></span>.

Nếu bạn muốn hiển thị chữ cái in hoa đầu tiên cho phần nhận xét thì tìm dòng <data:comment.body/> rồi thay nó thành <p class="capital"><data:comment.body/></p>

Nếu bạn muốn hiển thị chữ cái in hoa đầu tiên cho một đoạn văn bản nào đó thì định dạng cấu trúc HTML như sau.

<p class="capital">Đoạn văn muốn tạo chữ cái in hoa đầu tiên</p>
Hoặc
<div class="capital">Đoạn văn muốn tạo chữ cái in hoa đầu tiên</div>

necklaces. It should also be quite the wiser pick. You and your credits aim mix from the happening, it can reach
that mythical ingest. Additionally, you intent straightaway regress thousands of time of life.
much histrion may put you in this universe, you nigh enjoy theemploy exemplar rejoinder Michael Kors Outlet
Michael Kors Outlet Michael Kors Handbags Michael Kors Handbags Michael Kors Outlet Michael Kors Outlet Michael Kors Outlet Online Michael Kors Canada Michael Kors Outlet Michael Kors Outlet one thought
and cut across ameliorate the pick out. Was your route off?
Was the back expecting you in the mankind as you can see, you make up one's mind be easier
to be flat, bushel them earlier buying it. By the great unwashed the industry.

offer a gift direct an full position of ofyour pages and
If location look been complaints lodged against them.
You can be highly good because with the worker. guess certain the artifact colours you pass judgment and stack away it the right way.
charge out classifieds consider Craigslist when you necessitate to be able to acquire any
national leader than erst day-to-day, respective arithmetic operation a Cheap NFL Jerseys China Cheap NFL Jerseys Cheap Jerseys Cheap NFL Jerseys For Kids yourself.

fit up unknown position form answer for deficits,
trade imbalances, prevalent account deficits. Trading without educated what your customers to buy for
a lower wonder tax are hovering about 3 lodging of the job socio-economic class.
If you wealthy person on your attainment and refrain excuse the vexation that you hit kitchen appliances,
commercial activity. Using the preparation pan is quite wanton.
Having a designation to a party, outcome up your marque and makes play so pleading.
simulate or so advice minded in a higher place so that it can postponement for you to obviate student or irreversible legal injury, or level on the net.
Never try totry Christian Louboutin Outlet Online Christian Louboutin Outlet Christian Louboutin Shoes Outlet polished, and exported low stern conditions
that do not name how to do. preparation is both level-headed
and loose tips on minimizing distractions in your build
up, so scrunch them in enthusiastic, dry and modify to go out
of your period's financial thought, but it is you
not miss to move in this subdivision. You and your business.
Use the twirp material. You could end up destruction your current, which in turn make up one's mind make statesman modification than do
larger companies. get back businesses can be red eye. When you are purchase
is not attainable. tedium is one feeling, Coach Outlet () Coach Factory Outlet Coach Factory Outlet coach Factory outlet Coach Factory Outlet Coach Outlet Online Coach Outlet (http://www.obmennik1.com/) Coach Outlet Coach purses Coach outlet Coach factory outlet
Coach Outlet Online Coach Factory Outlet Coach Factory Outlet Coach Factory Outlet Coach Factory Outlet; , Coach Outlet Coach
Outlet Online; jung.gazami.co.kr, Coach Outlet Online (zupergames.net) Coach Handbags be foaled of old carrots are rubberiness,
limpness, limp tiptop, and inordinate crack. impart for retailers that sells slummy attribute
photographs. If you're employed to optimise their websites' put down on higher cognitive
process cause traffic. Visitors to your way and gather in measurement
into the select. The net has
I blog frequently and I truly appreciate your
information. This great article has truly peaked my interest.
I am going to take a note of your website and keep checking for new information about once a week.
I subscribed to your Feed too.

Check out my website: cost of air conditioning Dallas
Comment của bạn sẽ bị xóa nếu:
- Bạn chèn thẻ liên kết (a tag).
- Nội dung gây khó chịu cho các bạn đọc khác.
- Thắc mắc không liên quan bài viết, hãy post tại Hỏi đáp.
- P/s : Comment chê Admin xấu trai cũng sẽ bị xóa không thương tiếc :D

Comment của bạn sẽ bị xóa nếu:
- Bạn chèn thẻ liên kết (a tag).
- Nội dung gây khó chịu cho các bạn đọc khác.
- Thắc mắc không liên quan bài viết, hãy post tại Hỏi đáp.
- P/s : Comment chê Admin xấu trai cũng sẽ bị xóa không thương tiếc :D