Tạo nút với nội dung mở rộng
Posted by Tung Thanh Ly Vietnam on Monday, October 13, 2014 with No comments
Nhi Phi – A new definition of luxury hotel in Nha Trang
Opened in September 2012, Nhi Phi is the newest 3-star plus hotel located in the center of Nha Trang beach city.
Built in an area of 800 square meters, the hotel consists of 90 spacious rooms, a large conference hall, a swimming pool and spa & massage. The restaurants serve Western, Asian and traditional Vietnamese dishes.
What makes Nhi Phi different with some other 3-star hotels is the rooms. They are all designed to meet the standard of the 4-star ones. Especially, the hotel is managed by TheSinhTourist company which has been one of the largest tour operators in Vietnam since 1993 (formerly well-known as Sinh café). It, therefore, also offers valued travel information around Vietnam and has daily tours in Nha Trang as well as open seating/sleeping bus service to Mui Ne, Dalat, Hoi An, Hue, Hanoi.
Nhi Phi promises to bring you a great vacation experience!
......................
Bài viết chế độ HTML
Dán code:
<div>
<div>
<input type="button" value="Xem" style="width:75px; font-size:11px; margin:0px; padding:4px; border="1"" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Ẩn'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Xem'; }">
</div>
<div>
<div style="display: none; border:#4F4F4F 1px solid; padding: 4px; background:# ">
NỘI DUNG CẦN HIỂN THỊ
</div>
</div>
</div>
Chú ý: đối với nội dung được chèn vào làm phần mở rộng mà có nhiều đoạn thì nhớ chèn thêm thẻ <br /> trước mỗi đoạn nhé, nếu không thì sẽ biến toàn bộ nội dung thành một dòng duy nhất đấy
Nguồn: http://www.caoago.name.vn/2013/09/tao-nut-voi-noi-dung-mo-rong-tren.html#more
......................
Bài viết chế độ HTML
Dán code:
<div>
<div>
<input type="button" value="Xem" style="width:75px; font-size:11px; margin:0px; padding:4px; border="1"" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Ẩn'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Xem'; }">
</div>
<div>
<div style="display: none; border:#4F4F4F 1px solid; padding: 4px; background:# ">
NỘI DUNG CẦN HIỂN THỊ
</div>
</div>
</div>
Chú ý: đối với nội dung được chèn vào làm phần mở rộng mà có nhiều đoạn thì nhớ chèn thêm thẻ <br /> trước mỗi đoạn nhé, nếu không thì sẽ biến toàn bộ nội dung thành một dòng duy nhất đấy
Nguồn: http://www.caoago.name.vn/2013/09/tao-nut-voi-noi-dung-mo-rong-tren.html#more
0 comments:
Post a Comment